package com.yanqu.road.logic.activity.chuhan;

import java.util.HashSet;
import java.util.Set;

public class ChuHanMapNode {
    private int cityId;
    private Set<ChuHanMapNode> adjacent = new HashSet<>();

    public ChuHanMapNode(int cityId) {
        this.cityId = cityId;
    }

    public int getCityId() {
        return cityId;
    }

    public Set<ChuHanMapNode> getAdjacent() {
        return adjacent;
    }

    /**
     * 加相邻
     * @param to
     */
    public void addEdge(ChuHanMapNode to) {
        adjacent.add(to);
    }
}
